// 引入 iconfont
import "../../../public/iconfont/iconfont.js";

import Vue from "vue";
import VueBus from "vue-bus";
Vue.use(VueBus);

import App from "./themes.vue";
Vue.config.productionTip = false;

import axios from "axios";
import "../../axios/config.js";
Vue.prototype.$axios = axios;

// 注册布局组件
import { Layout } from "ant-design-vue";
Vue.use(Layout);

import Antd from "ant-design-vue/dist/antd";
Vue.use(Antd);
import VueDND from "awe-dnd";
Vue.use(VueDND);
import "../../assets/js/museui_all.js";

import moment from "moment";
import "moment/locale/zh-cn";
moment.locale("zh-cn");
window.moment = moment;

import BaiduMap from "vue-baidu-map";
// 百度地图ak
window.BAIDU_MAP_KEY = "OIvih0u0hKEDcBPQjSbo6IIyvpHrGYDp";
Vue.use(BaiduMap, {
  // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
  ak: window.BAIDU_MAP_KEY,
});
import "../../assets/museui_tools.less";
// 引入路由
import router from "./router/index.js";

new Vue({
  render: (h) => h(App),
  router, // 加载路由
}).$mount("#app");
